package com.gxa.modules.mapper.accessmapper;

import com.gxa.common.R;
import com.gxa.modules.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {

    public List<User> selectUser(@Param("userName") String userName,
                                 @Param("startIndex") int statrIndex,
                                 @Param("endIndex") int endIndex);

    public User selectUserByLoginName(@Param("loginName") String loginName);

    public int insertUser(User user);

    public int deleteUser(@Param("userId") String userId);

    public int updateUser(User user);
}
